﻿<UserControl x:Class="PomodoroTool.TaskItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Mouse.MouseUp="UserControl_MouseUp"
             >
    <Grid Name="rootGrid">
        <Grid.Resources>
            <BitmapImage x:Key="pomodoro" UriSource="pack://application:,,/Icons/delete1.png"/>
            <BitmapImage x:Key="done" UriSource="pack://application:,,/Icons/add1.png"/>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="18"/>
            <ColumnDefinition Width="10"/>
        </Grid.ColumnDefinitions>
            <Image Grid.Row="0" Grid.Column="0" Width="18" Height="18" Source="pack://application:,,/Icons/script1.png" />
        <ItemsControl Grid.Row="0" Grid.Column="1" Name="taskBadges">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Image Width="10" Height="10" Margin="0 0 0 -8" Source="{Binding}" />        
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>
</UserControl>
